//
//  ZoneTryCommonMacros.h
//  ZoneTry
//
//  Created by Sunny on 16/7/4.
//  Copyright © 2016年 ZoneTry. All rights reserved.
//
///////////////////////  宏定义  ////////////////////////////////

#ifndef ZoneTryCommonMacros_h
#define ZoneTryCommonMacros_h

//================================尺寸===================================

//屏幕宽高
#define kScreenCGRect [UIScreen mainScreen].bounds


//================================颜色===================================

//RGBA
#define KRGB(R,G,B,A) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:A]
// RGB颜色转换（16进制->10进制）
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
//清除背景色
#define CLEARCOLOR [UIColor clearColor]

// 导航栏背景颜色
#define kNavBackgroundColor [UIColor colorWithRed:30.0 / 255 green:30.0 / 255 blue:30.0 / 255 alpha:1.0]

//=================================调试===================================

//调试
#ifdef DEBUG
#define DLog(...) NSLog(__VA_ARGS__)
#else
#define DLog(...)
#endif

// The general purpose logger. This ignores logging levels.
#ifdef DEBUG
#define ITTDPRINT(xx, ...)  NSLog(@"%s(%d): " xx, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#define ITTDPRINT(xx, ...)  ((void)0)
#endif



#endif /* ZoneTryCommonMacros_h */
